/*
 * @Author: 晟松
 * @Date: 2022-03-21 10:31:05
 * @LastEditors: 晟松
 * @LastEditTime: 2022-07-23 13:00:43
 * @FilePath: \urban-manage-vued:\Code\vue\volunteer-vue3-admin\src\utils\test.js
 * @Description:
 */
import axios from "axios";

export const $axios = axios.create({
    baseURL: "/api",
});
$axios.interceptors.request.use((config) => {
    return config;
});

$axios.interceptors.response.use((res) => {
    // return res;
    return null || res;
});

console.log("git test add");
console.log("git test add2");
console.log("git test add3");

export const testlogin = (data) => {
    return $axios.request({
        url: "/login",
        method: "post",
        data,
    });
};
